<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>i2c: C:/Users/Jon/Downloads/OOP/model/Student.php Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">i2c
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">C:/Users/Jon/Downloads/OOP/model/Student.php</div>  </div>
</div>
<div class="contents">
<a href="_student_8php.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00002"></a>00002 
<a name="l00021"></a><a class="code" href="class_student.html">00021</a> <span class="keyword">class </span><a class="code" href="class_student.html">Student</a> {
<a name="l00022"></a>00022 
<a name="l00027"></a>00027     <span class="keyword">private</span> $studentID;
<a name="l00028"></a>00028     <span class="keyword">private</span> $fname;
<a name="l00029"></a>00029     <span class="keyword">private</span> $lname;
<a name="l00030"></a>00030     <span class="keyword">private</span> $username;
<a name="l00031"></a>00031     <span class="keyword">private</span> $currentGPA;
<a name="l00032"></a>00032     <span class="keyword">private</span> $major;
<a name="l00033"></a>00033     <span class="keyword">private</span> $yearStatus;
<a name="l00034"></a>00034     <span class="keyword">private</span> $graduationYear;
<a name="l00035"></a>00035     <span class="keyword">private</span> $gotHired;
<a name="l00036"></a>00036 
<a name="l00037"></a><a class="code" href="class_student.html#af46d26a00f0ca34b0ca82c44b9ba7ec2">00037</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#af46d26a00f0ca34b0ca82c44b9ba7ec2">__construct</a>($fname, $lname, $username, $currentGPA, $major,
<a name="l00038"></a>00038             $yearStatus, $graduationYear, $gotHired) {
<a name="l00039"></a>00039         $this-&gt;studentID = null;
<a name="l00040"></a>00040         $this-&gt;fname = $fname;
<a name="l00041"></a>00041         $this-&gt;lname = $lname;
<a name="l00042"></a>00042         $this-&gt;username = $username;
<a name="l00043"></a>00043         $this-&gt;currentGPA = $currentGPA;
<a name="l00044"></a>00044         $this-&gt;major = $major;
<a name="l00045"></a>00045         $this-&gt;yearStatus = $yearStatus;
<a name="l00046"></a>00046         $this-&gt;graduationYear = $graduationYear;
<a name="l00047"></a>00047         $this-&gt;gotHired = $gotHired;
<a name="l00048"></a>00048     }
<a name="l00049"></a>00049 
<a name="l00054"></a><a class="code" href="class_student.html#a03134e70d356dced1ce0d6198f16f743">00054</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a03134e70d356dced1ce0d6198f16f743">setStudentID</a>($studentID) {
<a name="l00055"></a>00055         $this-&gt;studentID = $studentID;
<a name="l00056"></a>00056     }
<a name="l00057"></a>00057 
<a name="l00062"></a><a class="code" href="class_student.html#ace142599b7404f931b2304934d390e36">00062</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#ace142599b7404f931b2304934d390e36">setFName</a>($fname) {
<a name="l00063"></a>00063         $this-&gt;fname = $fname;
<a name="l00064"></a>00064     }
<a name="l00065"></a>00065 
<a name="l00070"></a><a class="code" href="class_student.html#a72d2c12c99e166fc24afd8787899526f">00070</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a72d2c12c99e166fc24afd8787899526f">setLName</a>($lname) {
<a name="l00071"></a>00071         $this-&gt;lname = $lname;
<a name="l00072"></a>00072     }
<a name="l00073"></a>00073 
<a name="l00078"></a><a class="code" href="class_student.html#ac359b701a2ccaff746dd480f03314244">00078</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#ac359b701a2ccaff746dd480f03314244">setUsername</a>($username) {
<a name="l00079"></a>00079         $this-&gt;username = $username;
<a name="l00080"></a>00080     }
<a name="l00081"></a>00081 
<a name="l00087"></a><a class="code" href="class_student.html#a86ab659070576ace62bbb7283a1e6fd5">00087</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a86ab659070576ace62bbb7283a1e6fd5">setCurrentGPA</a>($currentGPA) {
<a name="l00088"></a>00088         $this-&gt;currentGPA = $currentGPA;
<a name="l00089"></a>00089     }
<a name="l00090"></a>00090 
<a name="l00095"></a><a class="code" href="class_student.html#af6af9d9133b4ad8ddb7d44aec2ccac8a">00095</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#af6af9d9133b4ad8ddb7d44aec2ccac8a">setMajor</a>($major) {
<a name="l00096"></a>00096         $this-&gt;major = $major;
<a name="l00097"></a>00097     }
<a name="l00098"></a>00098 
<a name="l00104"></a><a class="code" href="class_student.html#a2c8d482b93a479099a7d66902d85d713">00104</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a2c8d482b93a479099a7d66902d85d713">setYearStatus</a>($yearStatus) {
<a name="l00105"></a>00105         $this-&gt;yearStatus = $yearStatus;
<a name="l00106"></a>00106     }
<a name="l00107"></a>00107 
<a name="l00113"></a><a class="code" href="class_student.html#aa4e734076db099a9f26693141af2e7c8">00113</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#aa4e734076db099a9f26693141af2e7c8">setGraduationYear</a>($graduationYear) {
<a name="l00114"></a>00114         $this-&gt;graduationYear = $graduationYear;
<a name="l00115"></a>00115     }
<a name="l00116"></a>00116 
<a name="l00121"></a><a class="code" href="class_student.html#aa9b9ac28869256d5a701a3e4b55efa88">00121</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#aa9b9ac28869256d5a701a3e4b55efa88">setGotHired</a>($gotHired) {
<a name="l00122"></a>00122         $this-&gt;gotHired = $gotHired;
<a name="l00123"></a>00123     }
<a name="l00124"></a>00124 
<a name="l00129"></a><a class="code" href="class_student.html#a49220a793282aa8bd5ef9f685c8efb8f">00129</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a49220a793282aa8bd5ef9f685c8efb8f">getStudentID</a>() {
<a name="l00130"></a>00130         <span class="keywordflow">return</span> $this-&gt;studentID;
<a name="l00131"></a>00131     }
<a name="l00132"></a>00132 
<a name="l00137"></a><a class="code" href="class_student.html#a472e4a5d22b9d98f5067299e5743f85e">00137</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a472e4a5d22b9d98f5067299e5743f85e">getFname</a>() {
<a name="l00138"></a>00138         <span class="keywordflow">return</span> $this-&gt;fname;
<a name="l00139"></a>00139     }
<a name="l00140"></a>00140 
<a name="l00145"></a><a class="code" href="class_student.html#a9790bc5c0bd32aa14e70f6064a368451">00145</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a9790bc5c0bd32aa14e70f6064a368451">getLname</a>() {
<a name="l00146"></a>00146         <span class="keywordflow">return</span> $this-&gt;lname;
<a name="l00147"></a>00147     }
<a name="l00148"></a>00148 
<a name="l00153"></a><a class="code" href="class_student.html#a81b37a3c9d639574e394f80c1138c75e">00153</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a81b37a3c9d639574e394f80c1138c75e">getUsername</a>() {
<a name="l00154"></a>00154         <span class="keywordflow">return</span> $this-&gt;username;
<a name="l00155"></a>00155     }
<a name="l00156"></a>00156 
<a name="l00161"></a><a class="code" href="class_student.html#a3aaa430f66b3819b5c02ef461c57af8f">00161</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a3aaa430f66b3819b5c02ef461c57af8f">getCurrentGPA</a>() {
<a name="l00162"></a>00162         <span class="keywordflow">return</span> $this-&gt;currentGPA;
<a name="l00163"></a>00163     }
<a name="l00164"></a>00164 
<a name="l00169"></a><a class="code" href="class_student.html#a4576bbe299f7c5b6f4c27fe41f920261">00169</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a4576bbe299f7c5b6f4c27fe41f920261">getMajor</a>() {
<a name="l00170"></a>00170         <span class="keywordflow">return</span> $this-&gt;major;
<a name="l00171"></a>00171     }
<a name="l00172"></a>00172 
<a name="l00177"></a><a class="code" href="class_student.html#a93f18a4fea6c9e3eed3abb1ffde7e3be">00177</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a93f18a4fea6c9e3eed3abb1ffde7e3be">getYearStatus</a>() {
<a name="l00178"></a>00178         <span class="keywordflow">return</span> $this-&gt;yearStatus;
<a name="l00179"></a>00179     }
<a name="l00180"></a>00180 
<a name="l00185"></a><a class="code" href="class_student.html#ab1fffa56c3d8b9adeae597e5263e21ab">00185</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#ab1fffa56c3d8b9adeae597e5263e21ab">getGraduationYear</a>() {
<a name="l00186"></a>00186         <span class="keywordflow">return</span> $this-&gt;graduationYear;
<a name="l00187"></a>00187     }
<a name="l00188"></a>00188 
<a name="l00193"></a><a class="code" href="class_student.html#a3767d0d5e58f20f3dd6774c962e13e96">00193</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a3767d0d5e58f20f3dd6774c962e13e96">getGotHired</a>() {
<a name="l00194"></a>00194         <span class="keywordflow">return</span> $this-&gt;gotHired;
<a name="l00195"></a>00195     }
<a name="l00196"></a>00196 
<a name="l00197"></a><a class="code" href="class_student.html#a50adc8e1bb62e94c4adde487f4523196">00197</a>     <span class="keyword">function</span> <a class="code" href="class_student.html#a50adc8e1bb62e94c4adde487f4523196">printAllAttributes</a>() {
<a name="l00198"></a>00198         $output = sprintf(<span class="stringliteral">&quot;First Name: %s, Last Name: %s, Username: %s,</span>
<a name="l00199"></a>00199 <span class="stringliteral">            Current GPA: %f, Major: %s, Year Status: %s, Graduation Year: %s,</span>
<a name="l00200"></a>00200 <span class="stringliteral">            Got Hired: %s.&quot;</span>,
<a name="l00201"></a>00201                         $this-&gt;fname, $this-&gt;lname, $this-&gt;username,
<a name="l00202"></a>00202                         $this-&gt;currentGPA, $this-&gt;major, $this-&gt;yearStatus,
<a name="l00203"></a>00203                         $this-&gt;graduationYear, $this-&gt;gotHired);
<a name="l00204"></a>00204         <span class="keywordflow">return</span> $output;
<a name="l00205"></a>00205     }
<a name="l00206"></a>00206 }
<a name="l00207"></a>00207 
<a name="l00208"></a>00208 ?&gt;
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 29 2011 18:18:55 for i2c by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
